@import '/assets/fonts/iconfont.wxss';

.toast-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 9999;
  opacity: 0;

  .toast-icon {
    display: block;
    font-size: 48rpx;
    margin-bottom: 16rpx;
    text-align: center;
  }

  .toast-content {
    max-width: 80vw;
    min-width: 40vw;
    padding: 30rpx;
    line-height: 1.5;
    border-radius: 8rpx;
    font-size: 26rpx;
    background: rgba(255, 255, 255, .7);
    word-break: break-word;
    box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    text-align: center;

    .iconfont {
      font-size: 54rpx;
      line-height: 54rpx;
      font-weight: 200;
    }

    // 类型样式
    &--info {
      color: rgba(0, 0, 0, 0.7);
    }

    &--success {
      color: rgba(40, 167, 69, 0.9);
    }

    &--warning {
      color: rgba(255, 193, 7, 0.9);
    }

    &--error {
      color: rgba(220, 53, 69, 0.9);
    }
  }
}